package com.fitns.user.dto.baseConfig;

import com.fitns.user.model.core.Field;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;

@Data
public class FacilityDataDTO {
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("设施名称")
    private String name;

    @ApiModelProperty("机构id")
    private Long organId;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("服务面积")
    private Float acreage;

    @ApiModelProperty("人口")
    private Integer population;

    @ApiModelProperty("id")
    private String counter;

    @ApiModelProperty("id")
    private String liabler;

    @ApiModelProperty("id")
    private String phone;

    @ApiModelProperty("id")
    private String terminal;

    @ApiModelProperty("id")
    private String rfid;

    @ApiModelProperty("id")
    private String descs;

    @ApiModelProperty("id")
    private String beginTime;

    @ApiModelProperty("id")
    private String facilityType;

    private String lgitude;

    private String latitude;

    private String msg;

    private String icon;

    private String image;

    @Getter
    public enum FacilityDataFields implements Field {
        // @formatter:off
        ID("id", "id"),
        BEGAN_TIME("baganTime","began_time");



        private String fieldName;
        private String columnName;

        FacilityDataFields(String fieldName, String columnName) {
            this.fieldName = fieldName;
            this.columnName = columnName;
        }
    }
}
